package org.shop.service.impl;

import java.util.List;
import java.util.Map;

import org.shop.dao.QuestionAnswerMapper;
import org.shop.entity.QuestionAnswer;
import org.shop.service.QuestionAnswerService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class QuestionAnswerServiceImpl extends BaseServiceImpl<QuestionAnswer, Long> implements QuestionAnswerService{

	@Autowired
	private QuestionAnswerMapper questionAnswerMapper;
	
	public List<Map<String, Object>> getQuestionAnswerList(Map<String, Object> params){
		return questionAnswerMapper.getQuestionAnswerList(params);
	}
	
	public int getQuestionAnswerCount(Map<String, Object> params){
		return questionAnswerMapper.getQuestionAnswerCount(params);
	}
}